import request from '@/utils/request'

export function showQuestionList(query) {
  return request({
    url: '/question/show',
    method: 'get',
    params: query
  })
}

export function deleteQuestion(questionId) {
  return request({
    url: '/question/remove',
    method: 'get',
    params: { 'questionId': questionId }
  })
}

export function saveQuestion(data) {
  return request({
    url: '/question/save',
    method: 'post',
    data
  })
}
